﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
       <script language="javascript" type="text/javascript" src="Js/Excel.js"></script>
</head>
<body>
 <table style="width: 95%;">
            <tr>
                <td>
                    <input style="" type="button" id="btnExportCSV" value="导出Excel" onclick="toExcel(CX)" />
                </td>
            </tr>
        </table>
        <div>
        <table  id="CX">
            <tr>
                <td>id</td>
                <td>name</td>
                <td>age</td>
                <td>value</td>
            </tr>
            <tr>
                <td>1</td>
                <td>tom</td>
                <td>10</td>
                <td>12</td>
            </tr>
            <tr>
                <td>2</td>
                <td>jack</td>
                <td>11</td>
                <td>19</td>
            </tr>
        </table>
        </div>
</body>
</html>
